package router

import (
	"api-gateway/basic/midder"
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {

	router := gin.Default()

	router.POST("/shopadd", api.ShopwinAdd)
	j := router.Group("auth").Use(midder.Auth())
	j.POST("/add", api.ShopAdd)
	return router
}
